Skip to content

fix: fail closed on next-session live routing - #360

Merged
Pigbibi merged 1 commit into
mainfrom
agent/longbridge-next-session-fail-closed
Aug 24, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
agent/longbridge-next-session-fail-closed

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • block Longbridge direct live routing when a decision effective date differs from its signal date
  • retain paper previews for staged durable-command validation
  • record a structured block reason and send an operator alert instead of submitting an order

Safety

  • no service enablement, strategy parameter, allocation, close, cancel, or broker retry is included
  • a durable command plus reconciliation path is still required before any live recovery

Verification

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 uv run --extra test pytest -q tests/test_rebalance_service.py tests/test_execution_state.py
  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 uv run --no-project --with ruff ruff check --select E9,F63,F7,F82 application/rebalance_service.py tests/test_rebalance_service.py

Tracks #359.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit a4bc7b8 into main Aug 24, 2026
1 check passed
@Pigbibi
Pigbibi deleted the agent/longbridge-next-session-fail-closed branch August 24, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant